pub fn new_birthday_probability(n: u32) -> f64 {
    // TODO: 这里写逻辑
     // 确保人数大于等于2
     if n < 2 {
        return 0.0;
    }

    // 365天内的总可能生日数
    const DAYS_IN_YEAR: u32 = 365;
    
    // 计算所有人生日都不相同的概率
    let mut probability_no_shared_birthdays = 1.0;

    for i in 0..n {
        probability_no_shared_birthdays *= (DAYS_IN_YEAR - i) as f64 / DAYS_IN_YEAR as f64;
    }

    // 至少两个人生日相同的概率
    let probability_shared_birthdays = 1.0 - probability_no_shared_birthdays;

    // 保留四位小数
    (probability_shared_birthdays * 10000.0).round() / 10000.0
}
